#include<Arkhelper.h>

signed main(int argc,char* argv[]){
	adb::Tap(_JoinLevel);
	Print_To_Log("INFO: Preparing to Join map set...\n");
	Sleep(_DelayTime);
	switch(stoi(argv[1])){
		case 1:
			Swipe_To_Left(5);
			switch(stoi(argv[2])){
				case 0:
					adb::Tap(_MapSet0);
					Sleep(_DelayTime);
					break;
				case 1:
					adb::Tap(_MapSet1);
					Sleep(_DelayTime);
					Swipe_To_Left(4);
					switch(stoi(argv[3])){
						case 1:
							adb::Tap(_1_1_1);
							break;
						case 3:
							adb::Tap(_1_1_3);
							break;
						case 4:
							Swipe_To_Right(1);
							adb::Tap(_1_1_4);
							break;
						case 5:
							Swipe_To_Right(1);
							adb::Tap(_1_1_5);
							break;
						case 6:
							Swipe_To_Right(2);
							adb::Tap(_1_1_6);
							break;
						case 7:
							Swipe_To_Right(2); 
							adb::Tap(_1_1_7);
							break;
						case 8:
							Swipe_To_Right(2);
							adb::Tap(_1_1_8);
							break;
						case 9:
							Swipe_To_Right(3);
							adb::Tap(_1_1_9);
							break;
						case 10:
							Swipe_To_Right(3);
							adb::Tap(_1_1_10);
							break;
						case 12:
							Swipe_To_Right(4);
							adb::Tap(_1_1_12);
							break;
					}
					break;
				case 2:
					
					break;
				case 3:
					
					break;
				case 4:
					
					break;
				case 5:
					
					break;
				case 6:
					
					break;
				case 7:
					
					break;
				case 8:
					
					break;
			}
			break;
		case 2:
			adb::Tap(_MultiPage2);
			Sleep(_DelayTime);
			switch(stoi(argv[2])){
				
			}
			break;
		case 3:
			adb::Tap(_MultiPage3);
			Sleep(_DelayTime);
			switch(stoi(argv[2])){
				
			}
			break;
		case 4:
			adb::Tap(_MultiPage4);
			while(!TheSamePic(_InJiaoMie))Sleep(_DelayTime);
			adb::Tap(_ContinueMuiltPage4); 
			while(!TheSamePic(_InSelectJiaoMie))Sleep(_DelayTime);
			adb::Tap(_PosMenuMuiltPage4);
			Sleep(_DelayTime);
			switch(stoi(argv[2])){
				case 1:
					adb::Tap(_4_1);
					break;
				case 2:
					adb::Tap(_4_2);
					break;
				case 3:
					adb::Tap(_4_3);
					break;
				case 4:
					adb::Tap(_4_4);
					break;
			}
			break;
	}
	return 0;
}
